/**
 * @copyright   2010-2017, The Titon Project
 * @license     http://opensource.org/licenses/BSD-3-Clause
 * @link        http://titon.io
 */

@include export("notice") {
    #{generate-class-name($titon-notice)} {
        margin-bottom: theme-setting("margin");

        hr {
            border: 0;
            border-top: 1px solid white(.15);
        }
    }

    #{generate-class-name($titon-notice, "close")} {
        float: bidi-opposite-alignment();
        margin-#{bidi-alignment()}: theme-setting("small-padding");
        margin-bottom: theme-setting("small-padding");
        line-height: 1;
        padding: theme-setting("small-padding");
        background: none;
        border: 0;
        position: relative;
        z-index: 1;
    }

    #{generate-class-name($titon-notice, "head")},
    #{generate-class-name($titon-notice, "body")} {
        padding: theme-setting("medium-padding");
    }

    #{generate-class-name($titon-notice, "head")} {
        padding-bottom: 0;
    }
}
